package com.teamall.web.tssy.db.dao.mapper;

import com.teamall.web.tssy.db.arg.TsSyRoleArg;
import com.teamall.web.tssy.db.po.TsSyRolePO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ITsSyRoleMapper {
    
    List<Integer> countByArg(TsSyRoleArg arg);

    List<TsSyRolePO> selectByArg(TsSyRoleArg arg);

    TsSyRolePO selectByPrimaryKey(String id);

    List<TsSyRolePO> selectByArgAndPage(TsSyRoleArg arg, RowBounds rowBound);

    int insert(TsSyRolePO record);

    int insertSelective(TsSyRolePO record);

    int insertBatch(@Param("list") List<TsSyRolePO> records);

    int updateByArgSelective(@Param("record") TsSyRolePO record,
            @Param("arg") TsSyRoleArg arg);

    int updateByArg(@Param("record") TsSyRolePO record,
            @Param("arg") TsSyRoleArg arg);

    int updateByPrimaryKeySelective(TsSyRolePO record);

    int updateByPrimaryKeys(TsSyRolePO record);
    
    int updateByPrimaryKey(TsSyRolePO record);
    
    int deleteByArg(TsSyRoleArg arg);
    
    int deleteByPrimaryKey(String id);
    
}